import request from '@/utils/request'

// 查询收入支出核销列表
export function listReconciliation(query) {
  return request({
    url: '/finance/reconciliation/list',
    method: 'get',
    params: query
  })
}

// 查询收入支出核销详细
export function getReconciliation(id) {
  return request({
    url: '/finance/reconciliation/' + id,
    method: 'get'
  })
}

// 新增收入支出核销
export function addReconciliation(data) {
  return request({
    url: '/finance/reconciliation',
    method: 'post',
    data: data
  })
}

// 修改收入支出核销
export function updateReconciliation(data) {
  return request({
    url: '/finance/reconciliation',
    method: 'put',
    data: data
  })
}

// 删除收入支出核销
export function delReconciliation(id) {
  return request({
    url: '/finance/reconciliation/' + id,
    method: 'delete'
  })
}
